package com.tanhua.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tanhua.admin.pojo.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @Author: JinboYang
 * @Description:
 * @Date: Created in 19:54 2021/1/4
 * @ModifiedBy:
 */
@Mapper
@Component
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    /**
       * @Description: 查询行业和对应数量
       * @Param:[userIds]
       * @return:java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
       * @Author:JinboYang
       * @Date:2021/1/18
       */
    List<Map<String, Object>> queryIndustryList(@Param("userIds") List<Long> userIds);

   /**
      * @Description: 查询城市和对应数量
      * @Param:[userIds]
      * @return:java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
      * @Author:JinboYang
      * @Date:2021/1/18
      */
    List<Map<String, Object>> queryCityList(@Param("userIds") List<Long> userIds);

    /**
       * @Description: 查询性别和对应数量
       * @Param:[userIds]
       * @return:java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
       * @Author:JinboYang
       * @Date:2021/1/18
       */
    List<Map<String, Object>> queryGenderList(@Param("userIds") List<Long> userIds);

   /**
      * @Description: 查询性别和对应数量
      * @Param:[userIds]
      * @return:java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
      * @Author:JinboYang
      * @Date:2021/1/18
      */
    List<Map<String, Object>> queryAgeList(@Param("userIds") List<Long> userIds);
}
